package com.librarysys.dao;

import com.librarysys.entity.Bookinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.awt.print.Book;
import java.util.List;

@Mapper
public interface BookinfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Bookinfo record);

    int insertSelective(Bookinfo record);

    Bookinfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Bookinfo record);

    int updateByPrimaryKey(Bookinfo record);

    List<Bookinfo> selectAll();

    List<Bookinfo> selectByBarcode(String barcode);

    List<Bookinfo> selectByName(String name);

    List<Bookinfo> selectByQuery(@Param("barcode") String barcode, @Param("typeIds")String typeIds,@Param("publishIds") String publishIds, @Param("name")String name,@Param("bookcase") Integer bookcase);
}